package com.hc.homestay;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

@SuppressWarnings("deprecation")
@SpringBootApplication
@MapperScan("com.hc.homestay.mapper")
public class App {
	
	@Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
	
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
}
